<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateNotaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateNotaLabel_idNota}" for="idNota" />
                    <h:inputText id="idNota" value="#{notaController.selected.idNota}" title="#{bundle.CreateNotaTitle_idNota}" required="true" requiredMessage="#{bundle.CreateNotaRequiredMessage_idNota}"/>
                    <h:outputLabel value="#{bundle.CreateNotaLabel_idMateria}" for="idMateria" />
                    <h:inputText id="idMateria" value="#{notaController.selected.idMateria}" title="#{bundle.CreateNotaTitle_idMateria}" />
                    <h:outputLabel value="#{bundle.CreateNotaLabel_idExpediente}" for="idExpediente" />
                    <h:inputText id="idExpediente" value="#{notaController.selected.idExpediente}" title="#{bundle.CreateNotaTitle_idExpediente}" />
                    <h:outputLabel value="#{bundle.CreateNotaLabel_estado}" for="estado" />
                    <h:inputText id="estado" value="#{notaController.selected.estado}" title="#{bundle.CreateNotaTitle_estado}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{notaController.create}" value="#{bundle.CreateNotaSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{notaController.prepareList}" value="#{bundle.CreateNotaShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateNotaIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
